// ==UserScript== // @name 题海 x 划词搜题 // @version 1.2.7 // @namespace 题海官方团队 // @description 所有网页均支持划词搜题,也可输入文本搜题悬浮窗可拖动可关闭,可个性化设置解除网页禁止复制限制适用于各类问答,网课问题,竞赛问题,专业术语,业务名称,情景问题,在线作业等 // @author 题海官方团队 // @match *://*/* // @grant GM_getResourceText // @grant GM_info // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_addStyle // @grant GM_registerMenuCommand // @grant GM_setValue // @grant GM_getValue // @grant GM_deleteValue // @grant GM_setClipboard // @run-at document-end // @connect app.itihey.com // @connect localhost // @antifeature membership 关注微信公众号 // @resource Vue http://lib.baomitu.com/vue/2.6.0/vue.min.js // @resource TCaptcha https://ssl.captcha.qq.com/TCaptcha.js // @resource JQ361JS https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js // @resource jqueryweui https://cdn.bootcdn.net/ajax/libs/jquery-weui/1.2.1/js/jquery-weui.min.js // @resource weuiCss https://cdn.bootcdn.net/ajax/libs/weui/2.5.12/style/weui.min.css // @resource questionCss https://app.itihey.com/static/css/question_search.css // @resource bootstrap https://app.itihey.com/static/css/bootstrap.min.css // @resource Table https://www.forestpolice.org/ttf/2.0/table.json // @require https://cdn.jsdelivr.net/gh/photopea/Typr.js@15aa12ffa6cf39e8788562ea4af65b42317375fb/src/Typr.min.js // @require https://cdn.jsdelivr.net/gh/photopea/Typr.js@f4fcdeb8014edc75ab7296bd85ac9cde8cb30489/src/Typr.U.min.js // @require https://cdn.jsdelivr.net/npm/jquery@2.2.3/dist/jquery.min.js // @require https://cdn.jsdelivr.net/npm/jquery.md5@1.0.2/index.min.js // @require https://cdn.jsdelivr.net/gh/zyufstudio/jQuery@3a09ff54b33fc2ae489b5083174698b3fa83f4a7/jPopBox/dist/jPopBox.min.js // @require https://fastly.jsdelivr.net/gh/photopea/Typr.js@15aa12ffa6cf39e8788562ea4af65b42317375fb/src/Typr.min.js // @require https://fastly.jsdelivr.net/gh/photopea/Typr.js@f4fcdeb8014edc75ab7296bd85ac9cde8cb30489/src/Typr.U.min.js // @require https://fastly.jsdelivr.net/npm/jquery@2.2.3/dist/jquery.min.js // @require https://fastly.jsdelivr.net/npm/jquery.md5@1.0.2/index.min.js // @require https://fastly.jsdelivr.net/gh/zyufstudio/jQuery@3a09ff54b33fc2ae489b5083174698b3fa83f4a7/jPopBox/dist/jPopBox.min.js // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAArlSURBVGhDzVh9cBXVFT+7+76TFxISQkC+QUJxpOVDwCgChZG2ohQQRqf6R8fOtMyUMtJC06kj6rTTaYsfMP0YHXVoa8sgSMEJdhCoJCJUoHxjSkUSoEDAhPdIXt737vZ37u5Ldve9l8+h9Qe/5O7du/eee86555wbiRyYsjpUjF8rdaIl+F1m8rYiSwgrJIrg52HwvQEjpFc/WFWcFv0mbN9OXRt6TFdpA5rlRs8XDBIl8XPFsfUlbxodlg1MXRN6jnRaZz72H12qtX+QZFp59JclvxFt/jFtbejbuk5v3s5Fe4oeiyDRAmzifWlaNXxep3p0VRhv/o/onQLDmioNltFYJklUAVJeYtT/hLnWzs9ixa0/IUuytIhk9HTFHF/3lNLt5SPS9J+GG2CFUcIovQHky4WhJTINHiDTHQNlKvAYg8Ixja7e1Ojf11RK2IJgv9EozXgm/DmE6XOsZxHvHqFQ1Xg33V/potHlivEiD05dVqn2kxS9dzxJrTFkm/6hSZrxbDiEBievXmMSBH/6G366c7ACc5qdvcDb/0jQxt1xQhDpOezrNEkz1/V+A4U+iZ6a46Wl073iiPQH7Qmd1m6O0slLffKtJune53u3gSCEf+lbBTRhaH5XYde43qpRLKmTqhEV+SUa241rbdwdo62HOdH2Ck1S1QvhECzYow2UFEj0MoTPJUxzRKc9p5O052yKroY0ikKzNsBSC+720IyxLpp/l9vstOO1D+L01sGE+dQjYA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KahqSmglpaPPPKzmjy1skoPfv3ViQ6SNQFfKgk/abwDA50s1HoZczPN7tfHIznnWf6HQpVlvKfWlKIeAbTquElQhbMoYx6aFW1mkz4VPZ5fqnyJkDRThP36+jT2bXwhSRuGLiwR1TafT4B7cpYJPsg5sMnzRqdaTb+rMIMQ/i9jSkqRBUxpqTzTEThPnuRyHbURymBRMfrM1l4DjDs7lB5u/TVVxtDCEc9ciEJ2/YgBnuR5GRsROgW/xnzodmqYS4aVyILzTuRhDHP3EjR+kMRHFR0QOkc7bB2R5sxHspww1SXWtNZ1XAONGEDDY1ojDSes8HZTnG7yYvs7Ea45OfuUIySgMsCGEf8WTGeVunaLUQ3axruJ4RcLuWcNO/1xlpd0x8w++EiiK3IeoriQur2imTD2jZeGr/6A1W4KLsB3AHsDWTIpsiKyMrClUnfLS3aGl4NO74ofBKdMgZ0pWU2uTC3xbo8cV93x/4s5kSIQjjvcCVjNr7Uc83DcoEOufDdKunRne3s/6fA4aLXAjEdJmZtsebEQuyzuYC5WTtiIVARGuohutk7r8nWylhOyKDTNSh6ovh06c72xdjcdm7zKdfguLbBfQBP7IL7wU/FhnKhK7l5XRVysOJYDnSYbwRQMdL3di0ve61jjkXbQxvwwQ/6KnBXYJfkEoKtwpthl7B6g7GkUX8Ji7MCOWzng04/hvC/4qZNCQ9tbV6Jjo3mY9/QlVr7j88h/NqaZWWbzOfcyy3c2vw03ixGcxJ+228a/UAf9sYXkRYYqB6C12CCN2qWloWNVwyi/wIqDSvpRJGqowAAAABJRU5ErkJggg== // ==/UserScript== (function () { 'use strict'; /** * 借鉴 网页限制解除(改) * 原作者 qxin i * 开源地址 https://greasyfork.org/zh-CN/scripts/28497-%E7%BD%91%E9%A1%B5%E9%99%90%E5%88%B6%E8%A7%A3%E9%99%A4-%E6%94%B9/code */ var settingData = { "status": 1, "version": 0.1, "message": "借鉴 网页限制解除(改)", "positionTop": "0", "positionLeft": "0", "positionRight": "auto", "addBtn": true, "connectToTheServer": false, "waitUpload": [], "currentURL": "null", "shortcut": 3, // 域名规则列表 "rules": { "rule_def": { "name": "default", "hook_eventNames": "contextmenu|select|selectstart|copy|cut|dragstart|mousemove|beforeunload", "unhook_eventNames": "mousedown|mouseup|keydown|keyup", "dom0": true, "hook_addEventListener": true, "hook_preventDefault": true, "hook_set_returnValue": true, "add_css": true }, "rule_plus": { "name": "default", "hook_eventNames": "contextmenu|select|selectstart|copy|cut|dragstart|mousedown|mouseup|mousemove|beforeunload", "unhook_eventNames": "keydown|keyup", "dom0": true, "hook_addEventListener": true, "hook_preventDefault": true, "hook_set_returnValue": true, "add_css": true }, "rule_zhihu": { "name": "default", "hook_eventNames": "contextmenu|select|selectstart|copy|cut|dragstart|mousemove", "unhook_eventNames": "keydown|keyup", "dom0": true, "hook_addEventListener": true, "hook_preventDefault": true, "hook_set_returnValue": true, "add_css": true } }, "data": [ "b.faloo.com", "bbs.coocaa.com", "book.hjsm.tom.com", "book.zhulang.com", "book.zongheng.com", "chokstick.com", "chuangshi.qq.com", "city.udn.com", "cutelisa55.pixnet.net", "huayu.baidu.com", "imac.hk", "life.tw", "luxmuscles.com", "news.missevan.com", "read.qidian.com", "www.15yan.com", "www.17k.com", "www.18183.com", "www.360doc.com", "www.coco01.net", "www.eyu.com", "www.hongshu.com", "www.hongxiu.com", "www.imooc.com", "www.jjwxc.net", "www.readnovel.com", "www.tadu.com", "www.xxsy.net", "www.z3z4.com", "www.zhihu.com", "yuedu.163.com", "www.ppkao.com", "movie.douban.com", "www.ruiwen.com", "vipreader.qidian.com", "www.pigai.org", "www.shangc.net", "www.myhtlmebook.com", "www.yuque.com", "www.longmabookcn.com", "www.alphapolis.co.jp", "www.sdifen.com", "votetw.com", "boke112.com", "www.myhtebooks.com", "www.xiegw.cn", "chuangshi.qq.com", "www.uta-net.com", "www.bimiacg.net" ] }; var rwl_userData = null; var hostname = window.location.hostname; var btn_node = null; var rule = null; var list = null; var hasFrame = false; // 储存名称 var storageName = "StorageName"; // 要处理的 event 列表 var hook_eventNames, unhook_eventNames, eventNames; // 储存被 Hook 的函数 var EventTarget_addEventListener = EventTarget.prototype.addEventListener; var document_addEventListener = document.addEventListener; var Event_preventDefault = Event.prototype.preventDefault; // 查看本地是否存在旧数据 rwl_userData = GM_getValue("rwl_userData"); if (!rwl_userData) { rwl_userData = settingData; // GM_setValue("rwl_userData",rwl_userData); } // 自动更新数据 for (let value in settingData) { if (!rwl_userData.hasOwnProperty(value)) { rwl_userData[value] = settingData[value]; GM_setValue("rwl_userData", rwl_userData); } } version_up_3_to_4(); // 获取黑名单网站 list = get_black_list(); // 添加按钮 // if(rwl_userData.addBtn){ // addBtn(); // 添加 btn_node = document.getElementById("black_node"); setTimeout(function () { qxinStart(); }, 500); // } // GM_registerMenuCommand("复制限制解除 设置", setMenu) var userSetting = GM_getValue("rwl_userData"); // // ------------------------------函数 func function qxinStart() { // addDragEven(); // setBtnClick(); // 检查是否在黑名单中 if (check_black_list(list)) { try { if (rwl_userData.addBtn) { btn_node.checked = true; } } catch (e) { } finally { init(); } } } // 初始化 init func 这里才是核心 function init() { // 针对个别网站采取不同的策略 rule = clear(); // 设置 event 列表 hook_eventNames = rule.hook_eventNames.split("|"); // TODO Allowed to return value unhook_eventNames = rule.unhook_eventNames.split("|"); eventNames = hook_eventNames.concat(unhook_eventNames); // 调用清理 DOM0 event 方法的循环 if (rule.dom0) { setInterval(clearLoop, 10 * 1000); setTimeout(clearLoop, 1500); window.addEventListener('load', clearLoop, true); clearLoop(); } // hook addEventListener //导致搜索跳转失效的原因 if (rule.hook_addEventListener) { EventTarget.prototype.addEventListener = addEventListener; document.addEventListener = addEventListener; if (hasFrame) { for (let i = 0; i < hasFrame.length; i++) { hasFrame[i].contentWindow.document.addEventListener = addEventListener; } } } // hook preventDefault if (rule.hook_preventDefault) { Event.prototype.preventDefault = function () { if (hook_eventNames.indexOf(this.type) < 0) { Event_preventDefault.apply(this, arguments); } }; if (hasFrame) { for (let i = 0; i < hasFrame.length; i++) { hasFrame[i].contentWindow.Event.prototype.preventDefault = function () { if (hook_eventNames.indexOf(this.type) < 0) { Event_preventDefault.apply(this, arguments); } }; } } } // Hook set returnValue if (rule.hook_set_returnValue) { Event.prototype.__defineSetter__('returnValue', function () { if (this.returnValue !== true && hook_eventNames.indexOf(this.type) >= 0) { this.returnValue = true; } }); } // 添加CSS // console.debug('url: ' + url, 'storageName:' + storageName, 'rule: ' + rule.name); if (rule.add_css) { GM_addStyle('html, :not([class*="rwl-exempt"]) {-webkit-user-select:text!important; -moz-user-select:text!important;} :not([class*="rwl-exempt"]) ::selection {color:#fff; background:#3390FF!important;}'); } //else { //GM_addStyle('html, :not([class*="rwl-exempt"]) {-webkit-user-select:text!important; -moz-user-select:text!important;}'); //} } // Hook addEventListener proc function addEventListener(type, func, useCapture) { var _addEventListener = this === document ? document_addEventListener : EventTarget_addEventListener; if (hook_eventNames.indexOf(type) >= 0) { _addEventListener.apply(this, [type, returnTrue, useCapture]); } else if (unhook_eventNames.indexOf(type) >= 0) { var funcsName = storageName + type + (useCapture ? 't' : 'f'); if (this[funcsName] === undefined) { this[funcsName] = []; _addEventListener.apply(this, [type, useCapture ? unhook_t : unhook_f, useCapture]); } this[funcsName].push(func); } else { _addEventListener.apply(this, arguments); } } // 清理循环 function clearLoop() { rule = clear(); // 对于动态生成的节点,随时检测 var elements = getElements(); for (var i in elements) { for (var j in eventNames) { var name = 'on' + eventNames[j]; // ;?未解决 // 2018-04-02 elements中会有字符串出现,原版不会,问题不明,根本原因尚未解决 // 相关反馈 https://greasyfork.org/zh-CN/forum/discussion/36014 // 问题版本号 v3.0.7 // 问题补充 之前可以使用,具体版本未测(2018-04-02 21:27:53),原版可以使用 if (Object.prototype.toString.call(elements[i]) == "[object String]") { continue; } // console.log(elements[i]) // if(typeof elements[i][name] === "object"){ // console.log(typeof elements[i][name]) // } if (elements[i][name] !== null && elements[i][name] !== onxxx) { if (unhook_eventNames.indexOf(eventNames[j]) >= 0) { elements[i][storageName + name] = elements[i][name]; elements[i][name] = onxxx; } else { elements[i][name] = null; } } } } document.onmousedown = function () { return true; }; } // 返回true的函数 function returnTrue(e) { return true; } function unhook_t(e) { return unhook(e, this, storageName + e.type + 't'); } function unhook_f(e) { return unhook(e, this, storageName + e.type + 'f'); } function unhook(e, self, funcsName) { var list = self[funcsName]; for (var i in list) { list[i](e); } e.returnValue = true; return true; } function onxxx(e) { var name = storageName + 'on' + e.type; this[name](e); e.returnValue = true; return true; } // 获取所有元素 包括document function getElements() { var elements = Array.prototype.slice.call(document.getElementsByTagName('*')); elements.push(document); // 循环所有 frame 窗口 var frames = document.querySelectorAll("frame"); if (frames) { hasFrame = frames; var frames_element; for (let i = 0; i < frames.length; i++) { frames_element = Array.prototype.slice.call(frames[i].contentWindow.document.querySelectorAll("*")); elements.push(frames[i].contentWindow.document); elements = elements.concat(frames_element); } } return elements; } // 获取黑名单网站 Func function get_black_list() { // 之前版本可能导致存储空的字符串 // 2018-06-11 15:11:44 保留,当容错处理 var data_temp = rwl_userData.data; data_temp = data_temp.filter(function (item) { return item.length > 1; }); return data_temp; } // 检查是否存在于黑名单中 返回位置 func function check_black_list(list, host) { for (let i = 0; i < list.length; i++) { if (~hostname.indexOf(list[i])) { return i + 1; //万一匹配到第一个,返回0 } } return false; } // 数组去重 function unique(arr) { var ret = []; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (ret.indexOf(item) === -1) { ret.push(item); } } return ret; } // 复制到剪贴板 function setClipboard() { var text_obj = window.getSelection(); var text = text_obj.toString(); GM_setClipboard(text); } // 快捷键 F1(ctrl+f1) 复制 function hotkey() { var a = window.event.keyCode; // if ((a == 112) && (event.ctrlKey)) { if (a == 112 && userSetting.shortcut == 1) { event.preventDefault(); setClipboard(); event.keyCode = 0; event.returnValue = false; return false; } else if (a == 112 && (event.ctrlKey) && userSetting.shortcut == 2) { setClipboard(); } else if ((a == 67) && (event.ctrlKey) && userSetting.shortcut == 3) { setClipboard(); } else { console.log("关闭了快捷键"); } } document.onkeydown = hotkey; //当onkeydown 事件发生时调用hotkey函数 // 部分网站采用了其他的防复制手段 function clear() { // console.log("进入clear",hostname,rwl_userData.rules); switch (hostname) { case "chuangshi.qq.com": clear_chuangshi(); break; case "votetw.com": clear_votetw(); break; case "www.myhtebooks.com": clear_covers(".fullimg"); break; case "www.z3z4.com": clear_covers(".moviedownaddiv"); break; case "huayu.baidu.com": clear_covers("#jqContextMenu"); break; case "www.myhtlmebook.com": clear_covers("img.fullimg"); break; case "zhihu.com": case "www.zhihu.com": return rwl_userData.rules.rule_zhihu; case "t.bilibili.com": clear_link_bilibili(); break; case "www.uslsoftware.com": clear_covers(".protect_contents-overlay"); clear_covers(".protect_alert"); return rwl_userData.rules.rule_plus; case "www.longmabookcn.com": clear_covers(".fullimg"); return rwl_userData.rules.rule_plus; case "boke112.com": return rwl_userData.rules.rule_plus; case "www.shangc.net": return rwl_userData.rules.rule_plus; } return rwl_userData.rules.rule_def; } // 去除覆盖层 function clear_covers(ele) { var odiv = document.querySelector(ele); if (odiv) { odiv.parentNode.removeChild(odiv); } } // b站将文字嵌套在链接中 function clear_link_bilibili() { var odiv = document.querySelector(".description"); if (odiv) { var tDiv = odiv.querySelector(".content-ellipsis"); odiv.querySelector("a"); odiv.appendChild(tDiv); } } // https://votetw.com/wiki/%E6%9E%97%E6%99%BA%E5%A0%85 // 会创建多个无id,无class的div,覆盖在文字上层 function clear_votetw() { var odivs = document.querySelectorAll(".mw-parser-output>div"); odivs.forEach(function (value) { value.setAttribute("style", ""); }); } // 创世中文网 function clear_chuangshi() { console.log("创世中文网 开始执行"); } // 3.x.x 过渡 4.x.x 版本 function version_up_3_to_4() { var old_version = GM_getValue("black_list"); if (!old_version) { return } rwl_userData.data = unique(rwl_userData.data.concat(old_version.data)); GM_setValue("rwl_userData", rwl_userData); GM_deleteValue("black_list"); GM_deleteValue("rwl_userdata"); } /** * 原作者 wyn665817@163.com * 开源地址 https://scriptcat.org/script-show-page/432/code * 特别感谢 wyn大佬 提供的 字典匹配表 */ function removeF() { var md5 = $.md5; // 判断是否存在加密字体 var $tip = $('style:contains(font-cxsecret)'); if (!$tip.length) return; // 解析font-cxsecret字体 var font = $tip.text().match(/base64,([\w\W]+?)'/)[1]; font = Typr.parse(base64ToUint8Array(font))[0]; // 匹配解密字体 var table = JSON.parse(GM_getResourceText('Table')); var match = {}; for (var i = 19968; i < 40870; i++) { // 中文[19968, 40869] $tip = Typr.U.codeToGlyph(font, i); if (!$tip) continue; $tip = Typr.U.glyphToPath(font, $tip); $tip = md5(JSON.stringify($tip)).slice(24); // 8位即可区分 match[i] = table[$tip]; } // 替换加密字体 $('.font-cxsecret').html(function (index, html) { $.each(match, function (key, value) { key = String.fromCharCode(key); key = new RegExp(key, 'g'); value = String.fromCharCode(value); html = html.replace(key, value); }); return html; }).removeClass('font-cxsecret'); // 移除字体加密 function base64ToUint8Array(base64) { var data = window.atob(base64); var buffer = new Uint8Array(data.length); for (var i = 0; i < data.length; ++i) { buffer[i] = data.charCodeAt(i); } return buffer; } } function start() { setTimeout(function () { try {removeF();} catch (e) {} try {init();} catch (e) {} }, 2000); } function getDefaultConfig() { let defaultConfig = { auto_search: false,//自动搜索 auto_close: true,//自动关闭 remove_limit: true,//解除限制 fixed_modal: true,//基于浏览器布局 custom_style_on: true, in_setting: false,//是否在设置页面 custom_style: "", out_iframe: true, token: "" }; if (GM_getValue("defaultConfig") === undefined || Object.keys(JSON.parse(GM_getValue("defaultConfig"))).length !== 9) { //去查找接口设置 默认 GM_setValue("defaultConfig", JSON.stringify(defaultConfig)); } let options = JSON.parse(GM_getValue("defaultConfig")); if (options.token.length !== 0) { let exp = JSON.parse(window.atob(options.token.split('\.')[1])).exp; if (exp * 1000 <= Date.now()) { options.token = ''; } } return options } let options = getDefaultConfig(); function getToken() { return options.token || JSON.parse(GM_getValue("defaultConfig")).token } window.addEventListener("message", function (event) { if (event.data.type === 'search') { openEngine(event.data.wd); } else { if (event.data.type === 'auto_close') { options.auto_close = event.data.auto_close; GM_setValue("defaultConfig", JSON.stringify(options)); } else if (event.data.type === 'auto_search') { options.auto_search = event.data.auto_search; GM_setValue("defaultConfig", JSON.stringify(options)); } else if (event.data.type === 'remove_limit') { let copy = Object.assign(options); copy.remove_limit = event.data.remove_limit; GM_setValue("defaultConfig", JSON.stringify(copy)); } else if (event.data.type === 'fixed_modal') { options.fixed_modal = event.data.fixed_modal; GM_setValue("defaultConfig", JSON.stringify(options)); } else if (event.data.type === 'out_iframe') { options.out_iframe = event.data.out_iframe; GM_setValue("defaultConfig", JSON.stringify(options)); } else if (event.data.type === 'login') { console.log(event.data); GM_xmlhttpRequest({ method: "GET", url: "http://app.itihey.com/api/checkLogin?ticket=" + event.data.ticket, onload: function (r) { // console.log(r.responseText) let obj = JSON.parse(r.responseText); if (obj.code === 0) { options.token = obj.result.token; console.log(options.token); GM_setValue("defaultConfig", JSON.stringify(options)); SearchPanel.show(); } } }); } else if (event.data.type === 'captcha') { GM_xmlhttpRequest({ method: "POST", url: "http://app.itihey.com/api/captchaByHuaCi", headers: { "timestamp": Date.now(), "Content-Type": "application/json;charset=utf-8", "Access-Token": getToken(), "Version": GM_info.script.version }, data: JSON.stringify(event.data.res), onload: function (r) { openEngine(event.data.word); } }); } else if (event.data.type === 'checkVersion') { GM_setValue("version", JSON.stringify(event.data.version)); } } }, false); let POPOVER_ID = 'hcSearchePopover'; let MODAL_ID = 'hcSearcheModal'; let mouseX = 0; let mouseY = 0; let _self = unsafeWindow, top = _self, UE = _self.UE; function showFooter(obj) { let version = JSON.parse(GM_getValue("version")); if (version.need_update) { return createFooterNode('当前版本为' + GM_info.script.version + ',最新版本为' + version.version + ' 去升级') } else if (obj.code !== 0) { let msg = obj.message; if (obj.code === 40001) { msg = '当天匿名查询次数达到最大值'; } else if (obj.code === 40002) { msg = '当天查询次数达到最大值'; } return createFooterNode('请求码' + obj.code + ',' + msg + ' 去反馈') } else if (obj.code === 0 && obj.message !== '请求成功') { return createFooterNode(obj.message) } } var SearchPanel = { loginWX: function () { GM_xmlhttpRequest({ method: "GET", url: "http://app.itihey.com/api/login/weChat?client_version=" + GM_info.script.version, onload: function (r) { addModal2("", r.responseText, options.auto_close === true, false); } }); }, getOptions: function () { return options }, show: function () { console.log('show'); let selectionText = window.getSelection().toString().trim(); if (getToken().length === 0) { console.log('token 高度为0'); this.loginWX(); } else { console.log('token 高度不0'); console.log(selectionText); options.in_setting = false; addModal2(selectionText, createFrameLoading(), options.auto_close === true); openEngine(selectionText); } }, showWordSearch() { if (getToken().length === 0) { console.log('token 高度为0'); this.loginWX(); } else { options.auto_close = false; GM_setValue("defaultConfig", JSON.stringify(options)); openEngine(""); } }, setting: function () { options.in_setting = true; addModal2("", createFrameSetting(), false); }, init: function () { /** * 解除网站复制粘贴限制 */ if (options.remove_limit) relieveLimit(); //页面始终保持再最外层document top = options.out_iframe ? searchOutDocument(_self, top) : top; top.document.addEventListener('mouseup', mouseUp); top.document.addEventListener('mousemove', function (e) { mouseX = e.clientX; mouseY = e.clientY; }); if (!String.prototype.cordwood) { String.prototype.cordwood = function (cordlen) { if (cordlen === undefined || cordlen > this.length) { cordlen = this.length; } var yardstick = new RegExp(`.{${cordlen}}`, 'g'); var pieces = this.match(yardstick); var accumulated = (pieces.length * cordlen); var modulo = this.length % accumulated; if (modulo) pieces.push(this.slice(accumulated)); return pieces; }; } //获取tokens GM_xmlhttpRequest({ method: "POST", url: "http://app.itihey.com/api/hcGetTokens", headers: { "Referer": "https://app.itihey.com", "Content-Type": "application/json;charset=utf-8", }, onload: function (r) { console.log('获取tokens' + r.responseText); GM_setValue("tokens", JSON.stringify(JSON.parse(r.responseText).result)); } }); } }; // 搜索窗口可以根据设置决定是相对文档还是相对窗口定位 function renderModal(childElem, newPos) { //不是自动关闭就是绝对定位 或者依据用户设置 return render('hcsearche-modal', MODAL_ID, childElem, options.fixed_modal, newPos); } function mouseUp(e) { setTimeout(function () { mouseUpCallback(e); }, 1); } function mouseUpCallback(e) { if (options.auto_close === true) { removeTemplate(MODAL_ID, e.target); } e = e || window.event; mouseX = e.clientX; mouseY = e.clientY; let txt = window.getSelection().toString().trim(); if (txt && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA') ; else { autoRemoveTemplate(e); } } // 需要创建太多嵌套标签了,没个函数不行 function createContainer(name, childElem) { name = name.toLowerCase(); let elem = top.document.createElement(name); elem.style.display = 'block'; // id 改成驼峰式 elem.id = name.replace('hcsearche', 'hcSearche').replace(/\-[a-z]/g, function (w) { return w.replace('-', '').toUpperCase(); }); if (childElem) { if (Array.isArray(childElem) === false) childElem = [childElem]; for (let i = 0; i < childElem.length; i++) elem.appendChild(childElem[i]); } return elem; } /** * isFixed 是否相对浏览器可视区域定位 * newPos 是否更新定位(如果元素已经存在的话 */ function render(tagName, elemId, childElem, isFixed, newPos) { console.log('开始渲染 model', isFixed); let doc = top.document; let elem = doc.getElementById(elemId); if (elem) { elem.innerHTML = ''; } else { elem = doc.createElement(tagName); elem.id = elemId; doc.body.appendChild(elem); } let contentNode = createContainer(tagName + '-container', childElem); elem.appendChild(contentNode); // class ID same elem.classList.add(elemId); let X = false; let Y = false; if (!newPos) { X = elem.style.left.replace('px', ''); console.log(X, "X"); Y = elem.style.top.replace('px', ''); } if (!X) { let pos = getXY(elem.offsetWidth, elem.offsetHeight); X = pos.X; Y = pos.Y; // 相对文档定位时需要将文档滚动距离加上 if (!isFixed) { Y += window.pageYOffset; } } elem.style.position = isFixed ? 'fixed' : 'absolute'; elem.style.left = X + 'px'; elem.style.top = Y + 'px'; setTimeout(function () { elem.classList.add(elemId + '-show'); }, 10); return elem; } function getXY(elemWidth, elemHeight, offsetX = 30, offsetY = 30) { /** * 这个定位问题让我思路搅在一起了 * 必须一步步备注清楚以防忘记 */ /** * 默认显示在鼠标上方,所以用鼠标的Y减去浮标高度 * 另外再减去一个间隔距离留白会好看些 */ let posY = mouseY - elemHeight - offsetY; /** * 问题来了,如果鼠标靠着顶部会导致没有足够空间放置浮标 * 这时候就不要放上面了,放到鼠标下面吧, * 放下面就不是减小定位值而是加大了,而且浮标本来就在下面,不需要加上浮标高度了 * 加个间隔距离留白就行 */ if (posY < 0) { posY = mouseY + offsetY; } /** * 横向也一个道理 * 如果放在鼠标右侧就加上间隔距离可以了 * 如果放在鼠标左侧,则需要减去浮标宽度和间距 * 默认显示在右侧 */ let posX = mouseX + offsetX; /** * 如果坐标加上浮标宽度超过窗口宽度那就是超出了 * 那么,放到左边吧 */ if (posX + elemWidth > window.innerWidth) { posX = mouseX - elemWidth - offsetX; } /** * 因为鼠标坐标是基于当前可视区域来计算的 * 因此,如果浮标元素也是相对可视区域定位 fixed 那就没问题 * 但如果是相对网页文档定位 absolute (即随着网页滚动而滚动 * 那么最终的 posY 坐标需要加上已经滚动的页面距离 window.pageYOffset */ return { X: posX, Y: posY }; } // 临时锁定 function lockClick() { // toggle options options.auto_close = !options.auto_close; // toggle class this.classList.toggle('hcSearcheModalLocked', options.auto_close === false); } function linkCloseClick() { removeTemplate(MODAL_ID); } function createFrameLoading() { let html = ` 划词搜题 `; html += ` `; return html; } function createFooterNode(tip) { let footer = top.document.createElement('hcsearche-modal-links'); footer.setAttribute('data-seindex', 0); footer.setAttribute('style', 'margin-left:5px;justify-content: center;height:25px'); footer.innerHTML = tip; // footer.addEventListener('click', function () { // console.log("被点击") // // openEngine(txt, setNewPos); // }); footer.setAttribute('data-securrent', 'true'); footer.style.color = '#586069'; return footer } function addModal2(selectionText, html, newPos, footerChildNode = false) { // header link let linksNode = createContainer('hcsearche-modal-links'); let linkNode = top.document.createElement('hcsearche-link'); linkNode.setAttribute('title', '点击打开帮助文档'); linkNode.setAttribute('data-seindex', 0); linkNode.setAttribute('data-seclass', 'baidu'); linkNode.innerHTML = '题海 x 划词搜题'; linkNode.setAttribute('data-securrent', 'true'); linkNode.style.color = '#586069'; linkNode.addEventListener('click', function () { window.open('https://www.itihey.com'); }); linksNode.appendChild(linkNode); linkNode.addEventListener('click', function () { addModal2(selectionText, createFrameSetting(), false); }); // setting node let settingNode = top.document.createElement('hcsearche-link'); settingNode.setAttribute('title', '点击打开设置页'); settingNode.setAttribute('data-seindex', 0); settingNode.setAttribute('data-seclass', 'baidu'); settingNode.setAttribute('id', "settingNode"); settingNode.innerHTML = options.in_setting ? '返回' : '设置'; settingNode.setAttribute('data-securrent', 'true'); linkNode.style.color = '#586069'; // linksNode.appendChild(settingNode); settingNode.addEventListener('click', function () { options.in_setting = !options.in_setting; let btn = top.document.getElementById("settingNode").innerText; if (btn === '返回') { top.document.getElementById("settingNode").innerText = '设置'; SearchPanel.showWordSearch(); } else { top.document.getElementById("settingNode").innerText = '返回'; addModal2(selectionText, createFrameSetting(), false); } }); // close button let closeLinkNode = top.document.createElement('hcsearche-link'); closeLinkNode.id = 'hcSearcheClose'; closeLinkNode.innerHTML = '×'; closeLinkNode.addEventListener('click', linkCloseClick); linksNode.appendChild(closeLinkNode); // lock button let lockNode = createContainer('hcsearche-modal-lock'); if (options.auto_close === false) lockNode.classList.add('hcSearcheModalLocked'); lockNode.addEventListener('click', lockClick); // iframe let iframeNode = top.document.createElement('iframe'); iframeNode.id = 'hcSearcheIframe'; iframeNode.setAttribute('width', '100%'); iframeNode.setAttribute('frameborder', '0'); iframeNode.srcdoc = html; let headerNode = createContainer('hcsearche-modal-header', [lockNode, linksNode]); let bodyNode = createContainer('hcsearche-modal-body', iframeNode); let footerNode = createContainer('hcsearche-modal-footer', footerChildNode); let contentNode = createContainer('hcsearche-modal-content', [headerNode, bodyNode, footerNode]); let modal = renderModal(contentNode, newPos); dragElement(modal); } function dragElement(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; if (top.document.getElementById(elmnt.id + "-drag")) { // if present, the drag is where you move the DIV from: top.document.getElementById(elmnt.id + "-drag").onmousedown = dragMouseDown; } else { // otherwise, move the DIV from anywhere inside the DIV: elmnt.onmousedown = dragMouseDown; } function dragMouseDown(e) { e = e || window.event; e.preventDefault(); // get the mouse cursor position at startup: pos3 = e.clientX; pos4 = e.clientY; top.document.onmouseup = closeDragElement; // call a function whenever the cursor moves: top.document.onmousemove = elementDrag; } function elementDrag(e) { e = e || window.event; e.preventDefault(); // calculate the new cursor position: pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; // set the element's new position: elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; } function closeDragElement() { // stop moving when mouse button is released: top.document.onmouseup = null; top.document.onmousemove = null; } } // newPos 用来判断要不要修改窗口定位 // 划词搜索时需要,点击窗口链接时不用 function openEngine(selectionText, newPos = false) { options.in_setting = false; if (selectionText.length === 0) { let html = createFrameDoc2([], ''); addModal2('', html, false); } else { search(selectionText, function (r) { let html; if (r.code === 40003) { html = createFrameDoc2(40003, selectionText); } else { html = createFrameDoc2(r.result ? (r.result.list || []) : [], selectionText); } addModal2(selectionText, html, false, showFooter(r)); }, function () { }); } } // containsCheckElem 检查是否模板内元素,是就不移除 function removeTemplate(elemId, containsCheckElem = false) { const temp = top.document.getElementById(elemId); if (temp && (containsCheckElem === false || temp.contains(containsCheckElem) === false)) { temp.classList.remove(elemId + '-show'); setTimeout(function () { if (temp.classList.contains(elemId + '-show') === false && temp.parentElement) { top.document.body.removeChild(temp); } }, 500); } } function autoRemoveTemplate(e) { // console.log('autoRemoveTemplate') removeTemplate(POPOVER_ID, false); /** * 只有开启自动关闭才会自动移除搜索窗口 */ if (options.auto_close === true) { removeTemplate(MODAL_ID, e.target); } } function createFrameSetting() { let html = `
悬浮搜索图标
打开后划词自动打开搜题窗口进行搜题,否则鼠标右下角显示搜题图标
解除限制
打开后可解除部分网站的禁止划词限制,如冲突可关闭此功能(刷新页面后生效)
搜索窗口

打开后搜索窗口可固定在浏览器窗口特定位置,不受页面滚动影响

打开后将会将搜题窗口悬浮在最外层iframe,可能某些网站无法正常显示搜题窗口,否则将会在本iframe显示搜题窗口,若限制窗口无法移动到自定义的位置时可打开此开关

`; return html; } function createFrameDoc2(res, wd) { const show = res === 40003; if (res === 40003) res = []; let html = ` \t \t\t \t\t \t \t \t\t
\t\t\t
\t\t\t\t
\t\t\t\t\t \t\t\t\t\t \t\t\t\t
\t\t\t
\t\t
`; if (res.length === 0 && wd.length > 0) { html += '
\n' + '\t\t\t图片\n' + '\t\t\t
\n' + '\t\t\t\t
暂时没有搜索到这道题哦
\n' + '\t\t\t
\n' + '\t\t
'; } else { html += `
`; res.forEach((item, index) => { html += `\t\t\t
\t\t\t\t
\t\t\t\t\t
\t\t\t\t\t\t
` + item.index + `
\t\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t
\t\t\t\t
` + (item.question + `\n` + item.options.join('\n')) + `
\t\t\t\t
\t\t\t\t\t \t\t\t\t\t答案 \t\t\t\t
\t\t\t\t
\t\t\t\t\t
` + item.answer.join('\n') + `
\t\t\t\t
\t\t\t
`; }); html += `
`; } html += ` `; return html; } /** * 解除限制 */ function relieveLimit() { start(); if (location.host.indexOf('chaoxing') !== -1) { setTimeout(() => { try { _self.UEDITOR_CONFIG.scaleEnabled = false; } catch (e) { } $.each(UE.instants, function () { var key = this.key; this.ready(function () { this.destroy(); UE.getEditor(key); }); }); }, 2000); } if ((window.location.href.includes("newMooc=true") && location.host.indexOf('chaoxing') !== -1) || location.pathname.indexOf('exam/test/reVersionPaperMarkContentNew') !== -1) { setTimeout(() => { $("body").removeAttr("onselectstart"); $("html").css("user-select", "unset"); try { UE.EventBase.prototype.fireEvent = function () { return null }; } catch (e) { } }, 2000); } } function initChaoXingQuiz(wid, cid) { GM_xmlhttpRequest({ method: "POST", url: `https://lyck6.cn/api/init/chaoXing?wid=${wid}&cid=${cid}`, timeout: 10 * 1000 }); } function hookHTMLRequest(data) { GM_xmlhttpRequest({ method: "POST", url: 'https://app.itihey.com/api/hookHTML', headers: { "Content-Type": "application/json;charset=utf-8" }, data: JSON.stringify(data), timeout: 10 * 1000 }); } function search(wd, xhr_onload, xhr_onerror) { GM_xmlhttpRequest({ method: "POST", url: "https://app.itihey.com/api/hcSearchAnswer", // url: "http://localhost:10010/api/hcSearchAnswer", headers: { "timestamp": Date.now(), "Content-Type": "application/json;charset=utf-8", "Access-Token": getToken(), "Version": GM_info.script.version }, data: JSON.stringify({ href: location.href, time: String(Date.now()), word: wd }), onload: function (r) { const obj = JSON.parse(r.responseText); if (obj.code === 401) { //登陆失效清除token let options = JSON.parse(GM_getValue("defaultConfig")); options.token = ''; GM_setValue("defaultConfig", JSON.stringify(options)); location.reload(); } xhr_onload(JSON.parse(r.responseText)); }, onerror: function (e) { xhr_onerror(); } }); } /** * 字符串模板格式化 * @param {string} formatStr - 字符串模板 * @returns {string} 格式化后的字符串 * @example * StringFormat("ab{0}c{1}ed",1,"q") output "ab1cqed" */ function StringFormat(formatStr) { var args = arguments; return formatStr.replace(/\{(\d+)\}/g, function (m, i) { i = parseInt(i); return args[i + 1]; }); } /** * 日期格式化 * @param {Date} date - 日期 * @param {string} formatStr - 格式化模板 * @returns {string} 格式化日期后的字符串 * @example * DateFormat(new Date(),"yyyy-MM-dd") output "2020-03-23" * @example * DateFormat(new Date(),"yyyy/MM/dd hh:mm:ss") output "2020/03/23 10:30:05" */ function DateFormat(date, formatStr) { var o = { "M+": date.getMonth() + 1, //月份 "d+": date.getDate(), //日 "h+": date.getHours(), //小时 "m+": date.getMinutes(), //分 "s+": date.getSeconds(), //秒 "q+": Math.floor((date.getMonth() + 3) / 3), //季度 "S": date.getMilliseconds() //毫秒 }; if (/(y+)/.test(formatStr)) { formatStr = formatStr.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); } for (var k in o) { if (new RegExp("(" + k + ")").test(formatStr)) { formatStr = formatStr.replace( RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); } } return formatStr; } /** * 清除dom元素默认事件 * @param {object} e - dom元素 */ function ClearBubble(e) { if (e.stopPropagation) { e.stopPropagation(); } else { e.cancelBubble = true; } if (e.preventDefault) { e.preventDefault(); } else { e.returnValue = false; } } /** * hookHtml 主方法 */ function hookHTML() { if (location.pathname === '/work/doHomeWorkNew') { initChaoXingQuiz($('#workLibraryId').val() || $('#oldWorkId').val(), $('#courseId').val()); } let type = -1; if (location.href.includes('selectWorkQuestionYiPiYue')) { type = 1; } else if (location.href.includes('reVersionPaperMarkContentNew') && !location.href.includes('newMooc=true')) { type = 2; } else if (location.href.includes('work/view') || location.href.includes('exam/test/reVersionPaperMarkContentNew')) { type = 3; } type !== -1 && hookHTMLRequest({ url: location.href, type, enc: btoa(encodeURIComponent(document.getElementsByTagName('html')[0].outerHTML)) }); } /** * 寻找最外层doc * @param _self * @param top * @returns {*|string|boolean|number|string|Window} */ function searchOutDocument(_self, top) { try { while (top !== _self.top) { top = top.parent.document ? top.parent : _self.top; if (top.location.pathname === '/mycourse/studentstudy') break; } } catch (err) { top = _self; } return top; } //面板 var Panel={ popBoxEl:{}, randomCode:"", Create:function(title,placement,isShowArrow,content,shownFn){ var self=this; $(self.popBoxEl).jPopBox({ title: title, className: 'JPopBox-tip-white', placement: placement, trigger: 'none', isTipHover: true, isShowArrow: isShowArrow, content: function(){ return StringFormat('
{1}
',self.randomCode,content); } }); $(self.popBoxEl).on("shown.jPopBox",function(){ var $panel=$("div.JPopBox-tip-white"); typeof shownFn === 'function' && shownFn($panel); }); $(self.popBoxEl).jPopBox('show'); }, Update:function(Fn){ var $panel=$("div.JPopBox-tip-white"); Fn($panel); }, Destroy:function(){ //$(this.popBoxEl).jPopBox("hideDelayed"); $(this.popBoxEl).jPopBox("destroy"); }, CreateStyle:function(){ var s=""; s+=StringFormat("#panelBody{0}>div input,#panelBody{0}>div select{padding: 3px; margin: 0; background: #fff; font-size: 14px; border: 1px solid #a9a9a9; color:black;width: auto;min-height: auto; }",this.randomCode); s+=StringFormat("#panelBody{0}>div:first-child{padding-bottom: 5px;height:30px}",this.randomCode); s+=StringFormat("#panelBody{0}>div:last-child hr{border: 1px inset #eeeeee;background: none;height: 0px;margin: 0px;}",this.randomCode); return s; } }; // import {wonload} from "./lib/parse"; //主程序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nJojcpWvrjJzmHUmJ0Xts//62//60J//tgg7NLR8eng9eJxe4Lxo6LCdC+HWGAI2EmEwLRBrDjmgTGeY1C5NQF/hpk5OJ1+h0z3Wl5rNM2eiOlgPby+Stzm7Dh8x6GmioGeYC75oznlTr6iiCN6jlGdYhj3LfT0H8J0MFoZEpBr7WuBdMD8AkjVX/faAAAHai7PMqNz/XaKgKTBDT1NchUq86YinAfDX9RXiXeMNyEeWcWTjyKAlQIzUW3Y/SRA7KWwgeIcNSpLHntiZ986kgdLfVGwTqD66+O6otfK+w+2/ft0x1K5cJITM/9Cp9REQeqgsMlEQBA6CnUm+ZawAALEhhKXu8IRL0c/Nd5kg6IJXSTOsONHB8C2c82XPZAO7TBcsJACV9PrLmA7Xd9d2A9luHopHDaQHRMqNpxMOplBAmV+p47HcPBmt+8D4HpKpZyA91KAJ/ApihonVDTqHON24N/C5nkGMkp8ayYT32P2t+J+fhuR3HFRu0r4nKTYktAAAAnGnXO3i9tagoLuCXO7tUm30JTM3HDMSF0cFdJiXJNShblU7jFLjEbrbh3Lym06dN2V1hu7MXV8Aa6TvSXu69vBv92V9e0heTAHL1spzUD1JvAh7LpJGs9Y/6VT7FU7bhf4a1iBkLZR6EZumJovDdVJpOmLKsqhihywgfgoDomVG0+uWaZbc2O3z2imPIVQtg3cp73+MIIH+IBX+SvlizCxcHxvHOEY8dCyvKqx9LQXWV0p9YEZlq2p4AAAfF/cRxG/9jQX8aymC6LZ8RSOErMzVBXId1ULmOik5bagJaERMtl7/wCegLiZ/kJElnfIGHKqbDRzO6DfXSDW/gJSzsAqZAhg3gaQsPpjnsbNRfthL/wCZ9vJaOYVey8X8hYdGhmllg3askKOMIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; var $doc=$(document); var $body=$("html body"); $("html head"); var randomCode="yyMM000000"; //属性随机码,年月加六位随机码。用于元素属性后缀,以防止属性名称重复。 var createHtml=function(){ var wordTransIconHtml=StringFormat('
',randomCode,transIconBase64); $body.append(StringFormat('
',randomCode)+wordTransIconHtml+'
'); }; var createStyle=function(){ //尽可能避开csp认证 GM_addStyle(`#hcSearchePopover,#hcSearcheModal,#hcSearchePopover.hcSearchePopover,#hcSearcheModal.hcSearcheModal{all:initial;position:absolute;z-index:2147483647;display:block;font-size:14px;color:#333333;line-height:26px;transform:scale(0.9);opacity:0;transition:transform 0.1s ease-out,opacity 0.1s ease-out;}#hcSearchePopover.hcSearchePopover-show,#hcSearcheModal.hcSearcheModal-show{transform:scale(1);opacity:1;}#hcSearcheModal #hcSearcheModalContent{background:#f6f8fa;border:1px solid #d1d5da;border-radius:3px;color:#586069;display:block;box-shadow:0 16px 100px 0 rgba(0,0,0,0.2);}#hcSearcheModal #hcSearcheModalBody{margin-left:auto;margin-right:auto;position:relative;width:390px;background-color:#fff;border:1px solid #d1d5da;border-width:1px 0;border-radius:3px;}#hcSearcheModal #hcSearcheIframe{overflow:hidden;margin:0;padding:0;height:550px;}#hcSearcheModal #hcSearcheModalHeader{font-size:13px;line-height:24px;padding:6px 12px;color:#586069;}#hcSearcheModal #hcSearcheModalHeader::after{display:block;clear:both;content:"";}#hcSearcheModal #hcSearcheModalFooter{min-height:10px;cursor:move;position:relative;display:flex; justify-content: center;}#hcSearcheModal #hcSearcheModalLinks{float:right}#hcSearcheModal #hcSearcheModalLinks hcsearche-link{display:inline-block;color:#24292e;margin:0 0 0 6px;font-size:13px;font-weight:normal;text-decoration:none;cursor:pointer;padding:0 0.5em;border-radius:0;}#hcSearcheModal #hcSearcheModalLinks hcsearche-link[data-securrent=true],#hcSearcheModal #hcSearcheModalLinks hcsearche-link:hover{background:rgba(27,31,35,.08);color:#444d56;}#hcSearcheModal #hcSearcheModalLinks hcsearche-link>svg{vertical-align:sub;padding-left:4px;}#hcSearcheModal #hcSearcheModalLinks #hcSearcheClose:hover{background:rgba(0,0,0,0.05);}#hcSearcheModal #hcSearcheModalLock{float:left;display:block;opacity:0.3;margin-top:3px;width:20px;height:20px;background-size:20px;background-position:center;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMSAxMHYtNGMwLTIuNzYtMi4yNC01LTUtNXMtNSAyLjI0LTUgNXYyaC0xdi0yYzAtMy4zMTIgMi42ODktNiA2LTZzNiAyLjY4OSA2IDZ2NGgxMHYxNGgtMTh2LTE0aDd6bTEwIDFoLTE2djEyaDE2di0xMnoiLz48L3N2Zz4=);}#hcSearcheModal #hcSearcheModalLock.hcSearcheModalLocked{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik02IDZjMC0zLjMxMSAyLjY4OS02IDYtNnM2IDIuNjg4IDYgNnY0aDN2MTRoLTE4di0xNGgzdi00em0xNCA1aC0xNnYxMmgxNnYtMTJ6bS0xMy01djRoMTB2LTRjMC0yLjc2LTIuMjQtNS01LTVzLTUgMi4yNC01IDV6Ii8+PC9zdmc+)}#hcSearcheModal #hcSearcheNextLink{position:absolute;top:-40px;right:28px;display:block;width:32px;height:32px;color:#6c757d;cursor:pointer;background-size:16px;background-position:center;background-repeat:no-repeat;background-color:#f6f8fa;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA4UlEQVQ4T+2TTUoDQRCF32twTpCLuFKYEaYWguvoGQS3nsFjeAYXEoIQ6JqF1wi6Sly48wBPGpzQtpNJyMJVetm8+urvFTHyYoy3IYS3tm0X22QcA7j7A4B3M3s8Av5rBu4+MbPPfuJDWyg1mzVKCu6+InljZq8JUgK6rruTNDWzyz7JLx/EGM8APJO8TpAc8BN8D+DCzD4GAekzhwC4SkYieSLpT3DSDzoxQUjOJM1DCEHSeZl5awXZABtJLyS/AJzmZee23nULTVVV67qulwfdwtihbVpw9wjA9hGXGklP3z4VgPj5LnZPAAAAAElFTkSuQmCC);border-radius:3px;}#hcSearcheModal #hcSearcheNextLink:hover{background-color:#e9ecef;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA8ElEQVQ4T2NkwAMKCwvT/v37d3/ixIm7cSljxGdAQUFBCwMDw4MJEybMGTWAXmFQXFws0tvb+wYW4thiAV0NPBobGhqY3r9//4yBgSFk4sSJR0CGoBtQUFCQycDAEDRhwgRXmCUo6SA/P9+ckZFx0////4NBhiAbANVc9OvXL9tp06a9wGoASBDZEEZGRg9QQmJgYGBlYGDA0AxSjzUlQg3Z8v///20MDAxMjIyMFug243QBTCI/P9+GgYFhBwMDw+ffv38bIjsbOVnjzQvFxcU2TExMz7u7u++SlRfwZTS4F/Lz8/cxMjI6EqMYi5p1AJbtgw7fjyoMAAAAAElFTkSuQmCC);color:#444d56;}#hcSearcheModal #hcSearcheNextLink.hcSearcheNextLinkLoading{background-color:#e9ecef;background-image:none;}#hcSearcheModal #hcSearcheNextLink.hcSearcheNextLinkLoading:after{content:" ";display:block;width:12px;height:12px;margin:9px 0 0 9px;border-radius:50%;border:1px solid #24292e;border-color:#24292e transparent #24292e transparent;animation:hcSearcheNextLinkLoading 1.2s linear infinite;}@keyframes hcSearcheNextLinkLoading{0%{transform:rotate(0deg);}50%{transform:rotate(180deg);}100%{transform:rotate(720deg);}}.JPopBox-tip-white{z-index:1060;min-width:50px;max-width:300px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;color:#333;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.JPopBox-tip-white .JPopBox-tip-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0;font-weight:500;line-height:1.1;color:inherit}.JPopBox-tip-white .JPopBox-tip-content{padding:9px 14px}.JPopBox-tip-white .JPopBox-tip-arrow,.JPopBox-tip-white .JPopBox-tip-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:10px;content:""}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-top{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:rgba(0,0,0,.25);bottom:-11px}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-top:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-right{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:rgba(0,0,0,.25)}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-right:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-bottom{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:rgba(0,0,0,.25);top:-11px}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-bottom:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-left{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:rgba(0,0,0,.25)}.JPopBox-tip-white .JPopBox-tip-arrow.JPopBox-tip-arrow-left:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.JPopBox-tip-white{width: 482px;max-width: 550px;min-width: 450px;}`); var s=""; s+=StringFormat(".wordTrans{0}{box-sizing: content-box;cursor: pointer;z-index: 2147483647;border-width: 0px;border-style: solid;border-image: initial;border-radius: 5px;padding: 0.5px;position: absolute;display: none}",randomCode); s+=StringFormat(".wordTransIcon{0}{background-image: url({1});background-size: 50px;height: 50px;width: 50px;}",randomCode,transIconBase64); s+=Panel.CreateStyle(); GM_addStyle(s); }; var ShowWordTransIcon=function(){ var $wordTransIcon=$("div#wordTrans"+randomCode); var isSelect=false; var isPanel=false; var isWordTransIcon=false; $doc.on({ "selectionchange":function(e){ isSelect=true; }, "mousedown":function(e){ var $targetEl=$(e.target); isPanel=$targetEl.parents().is("div.JPopBox-tip-white"); isWordTransIcon=$targetEl.parents().is(StringFormat("div#wordTrans{0}",randomCode)); //点击划词图标外域和划词面板外域时,隐藏图标和划词面板 if(!isWordTransIcon && !isPanel){ $wordTransIcon.hide(); Panel.Destroy(); } else { //点击划词图标,取消鼠标默认事件,防止选中的文本消失 if(isWordTransIcon){ ClearBubble(e); } } }, "mouseup":function(e){ var selectText = window.getSelection().toString().trim(); if(!isPanel&&isSelect&&selectText){ if (!SearchPanel.getOptions().auto_search){ $wordTransIcon.show().css({ left: e.pageX + 'px', top : e.pageY + 12 + 'px' }); }else { //选中的文本内容 SearchPanel.show(); } isSelect=false; } } }); $wordTransIcon.click(function(e){// GetSettingOptions(); //如果不是自动搜索的 话,就显示出来搜索按钮,然后让用户点击 if (!SearchPanel.getOptions().auto_search){ Panel.Destroy(); SearchPanel.show(); $wordTransIcon.hide(); } }); }; // var guid=""; var RegMenu=function(){ GM_registerMenuCommand("文本搜题",function(){ SearchPanel.showWordSearch(); }); GM_registerMenuCommand("设置",function(){ SearchPanel.setting(); }); }; this.init=function(){ randomCode=DateFormat(new Date(),"yyMM").toString()+(Math.floor(Math.random() * (999999 - 100000 + 1) ) + 100000).toString(); createStyle(); createHtml(); ShowWordTransIcon(); SearchPanel.init(); window.onload = hookHTML; // window.onload = wonload RegMenu(); }; }; var hcSearch=new HcSearch(); hcSearch.init(); })();